package com.bgs.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.bgs.common.R;
import com.bgs.pojo.BeforeUser;
import com.bgs.pojo.OrderDetail;
import com.bgs.pojo.Picture;
import com.bgs.pojo.Store;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Evaluate对象", description="商品图片包装类")
public class DetailOrPicture implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品详情表id")
    @TableId(value = "order_detail_id", type = IdType.AUTO)
    private Integer orderDetailId;

    @ApiModelProperty(value = "商品名称")
    private String orderDetailName;

    @ApiModelProperty(value = "购买商品库存")
    private String orderDetailRepertory;

    @ApiModelProperty(value = "购买商品单价")
    private Double orderDetailPrice;

    @ApiModelProperty(value = "购买商品重量")
    private String orderDetailWeight;

    @ApiModelProperty(value = "商品介绍")
    private String orderDetailIntroduce;

    @ApiModelProperty(value = "商品类别id")
    private Integer productId;

    @ApiModelProperty(value = "0是认领1是直购2是拼团和直购")
    private Integer orderDetailStatus;

    @ApiModelProperty(value = "拼团人数")
    private Integer spellGroupNumber;

    @ApiModelProperty(value = "拼团价格")
    private Double spellGroupPrice;

    @ApiModelProperty(value = "销量(原销量+卖出去的个数)")
    private Integer orderDetailSales;

    @ApiModelProperty(value = "商品推荐(redis或者mq来实现)")
    private Integer orderDetailRecommended;

    @ApiModelProperty(value = "是否支持七天无理由退货0不支持,1支持")
    private Integer salesReturn;

    @ApiModelProperty(value = "店铺id")
    private Integer storeId;

    @ApiModelProperty(value = "审核状态")
    private Integer orderDetailState;

    @ApiModelProperty(value = "图片路径")
    private String pictureUrl;

    @ApiModelProperty(value = "用户表")
    private BeforeUser beforeUser;
    @ApiModelProperty(value = "店铺表")
    private Store store;
    @ApiModelProperty(value = "图片表")
    private Picture picture;


    private OneBeforUserAndStore obuas;
}
